﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IOBusiness.LinqDB;


namespace IOBusiness.ClassLinq
{
    public class clsLqPhoto
    {
        SapaDBDataContext objContext = new SapaDBDataContext();

        public List<tblHinhAnh> HinhAnh_getHinhAnh(int idTheLoai)
        {
            try
            {
                var select = from hinhanh in objContext.tblHinhAnhs
                             where hinhanh.TourID.Equals(idTheLoai)
                             select hinhanh;
                return select.ToList<tblHinhAnh>();
            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}
